<template>
	<view>
		<view class="myself" @click="navTo('/pages/sys/user/secure')">
			<view class="left">
				<text>手机号</text>
			</view>
			<text class="phone">136****5689</text>
		</view>
		<view class="myself" @click="navTo('/pages/sys/user/pwd')">
			<view class="left">
				<text>修改登录密码</text>
			</view>
			<image src="/static/icon-jiantou.png" mode=""></image>
		</view>
		<view class="myself" @click="show = true">
			<view class="left">
				<text>注销账号</text>
			</view>
			<image src="/static/icon-jiantou.png" mode=""></image>
		</view>
		<u-modal v-model="show" title="注销账号" confirm-color="#FA5151" :show-cancel-button="true">
			<view class="mobile-box">
				<u-input v-model="mobile" height="88" type="text" :border="false" placeholder="请输入注销账号原因" :clearable="false" placeholder-style="textAlign: center;" />
			</view>
		</u-modal>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show: false,
				mobile: ''
			};
		},
		methods: {
			navTo(url) {
				uni.navigateTo({
					url: url
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
.myself {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24rpx 30rpx;
	background: #fff;
	.left {
		display: flex;
		align-items: center;
		image {
			width: 40rpx;
			height: 40rpx;
			margin-right: 12rpx;
		}
		text {
			font-family: PingFangSC, PingFang SC;
			font-weight: 500;
			font-size: 28rpx;
			color: #333333;
			line-height: 40rpx;
			text-align: left;
			font-style: normal;
		}
	}
	.phone {
		font-family: PingFangSC, PingFang SC;
		font-weight: 400;
		font-size: 32rpx;
		color: #999999;
		line-height: 44rpx;
		text-align: right;
		font-style: normal;
	}
	image {
		width: 44rpx;
		height: 44rpx;
	}
}
.mobile-box {
	margin: 48rpx 40rpx 64rpx 20rpx;
	::v-deep .uni-input-wrapper {
		height: 88rpx;
		background: #F8F8F8;
	}
}
</style>
